<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Region extends Model
{
    use HasFactory;

    protected $table = 'regions';

    public function getInfoList(){
        return $this->get();
    }

    public function getInfo($field,$val){
        return $this->where($field,'=',$val)->first();
    }

}
